package com.cn.springcloudwechat.mapper.mapper;

import com.cn.springcloudwechat.model.YmUserSignIn;

public interface YmUserSignInMapper {
    int deleteByPrimaryKey(Long signInId);

    int insert(YmUserSignIn record);

    int insertSelective(YmUserSignIn record);

    YmUserSignIn selectByPrimaryKey(Long signInId);

    int updateByPrimaryKeySelective(YmUserSignIn record);

    int updateByPrimaryKey(YmUserSignIn record);

    /**
     * 获取用一条最新的签到记录
     * @param userId
     * @return
     */
    YmUserSignIn getNewestSignIn(Long userId);
}